package ict.kth.se.exceptions;

/*
 * This exception is thrown when we try to retrieve object that doesn't exist in DB (used for updating)
 */
public class EntityDoesntExistInDBException extends Exception{

	private static final long serialVersionUID = 1L;
	//An string to write out when exception is reached
    private String outMessage = "Entity doesn't exist in database";

    /**
     * Constructor without parameters 
     */
    public EntityDoesntExistInDBException() {
    }

    
    /**
     * Constructor with parameter Message
     * @param message
     */
    public EntityDoesntExistInDBException(String message) {
    	super(message);
    }

    /**
     * Creates one message that is to be sent to the view
     * @return               An message String
     */
    public String getMessage(){
        return outMessage;
    }
}
